package com.boxing.dao;

import com.boxing.bean.User;
import com.boxing.bean.UserDesc;

public interface UserDao {
    /**
     * 验证用户是否合法
     */
    public boolean verifyUser(User user);

    /**
     * 判断用户是否已存在
     */
    boolean existUser(String userName);

    /**
     * 注册新用户
     */
    boolean registerUser(User user);

    UserDesc getUser(String name);

    boolean editUser(UserDesc userDesc);

    boolean editIcon(UserDesc userDesc);
}
